package com.yhk.wuchat.common.common.thread;

import lombok.extern.slf4j.Slf4j;

/**
 * @version 1.0
 * @Author moresuo
 * @Date 2024/4/6 19:17
 * @注释
 */

/**
 * 线程池中的异常用日志打印
 * 异常捕获处理类
 */
@Slf4j
public class MyUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {

    @Override
    public void uncaughtException(Thread t, Throwable e) {
        log.error("Exception in thread" + t.getName(), e);
    }
}
